package com.atguigu.spring6.iocxml.auto.service.impl;


import com.atguigu.spring6.iocxml.auto.dao.UserDao;
import com.atguigu.spring6.iocxml.auto.dao.impl.UserDaoImpl;
import com.atguigu.spring6.iocxml.auto.service.UserService;

public class  UserServiceImpl implements UserService {
   private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void addUserService() {
        System.out.println("UserService方法执行了");
       userDao.addUserDao();
        //UserDao userDao = new UserDaoImpl();
        //userDao.addUserDao();
    }
}
